<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of logout
 * 
 * @author Subha Sundar Das (subhasundar.das@gmail.com)
 */
class Logout extends MY_Controller {

    //put your code here


    function logout() {
        parent :: __construct();
        //put your code here
    }

    function index() {
         $this->session->unset_userdata('mem_id');
         $this->session->unset_userdata('mem_email');
         $this->session->unset_userdata('mem_password');
         $this->session->unset_userdata('mem_type');
         $this->session->unset_userdata('mem_fname');
         $this->session->unset_userdata('mem_lname');
         $this->session->unset_userdata('mem_last_login');
         $this->session->unset_userdata('mem_created_on');
         
         redirect('member/login');
    }

}

?>
